package com.frame.database.proxy;


import com.frame.database.operate.JdbcOperate;
import com.frame.database.operate.Operate;

import net.sf.cglib.proxy.Enhancer;

/**
 * 操作代理工厂
 * @author whf
 *
 */
public class OperateProxyFactory {

	public static Operate createProxy(Class c){
		return (Operate)Enhancer.create(c, new HibernateProxy());
	}
	public static JdbcOperate createJdbcProxy(Class c){
		return (JdbcOperate)Enhancer.create(c, new JdbcProxy());
	}
}
